package element.synt;

import ast.AstItem;
import ast.MainFunc;
import element.base.Synt;

public class MainFuncDef extends Synt {
    @Override
    public AstItem toAst() {
        MainFunc mainFunc = new MainFunc();
        Block block = (Block) getNodes().getLast();

        mainFunc.mainFuncBlock = block.toAst();

        return mainFunc;
    }
}
